package com.hdyg.csc.mvp.base;

import com.hdyg.csc.util.StringUtil;

import java.util.HashMap;
import java.util.Map;

public class BaseUrl {
    public static String APPURL = "http://www.mi-zg.net/app/api/index";
    public final static String NET_FAIL_URL = "file:///android_asset/404.html";//报错加载网页
    public static String NO = "1000000034";
    public static String KEY = "d27352a159d32b8c746fe884aa9b2f44";
    public static String STATUS = "1";                           // 请求返回状态 1为成功
    public static String UN_TOKEN = "0100";                         // KOTEN 不符（抢登）
    //腾讯BUGLY参数
    public static final String BUGLY_APPID = "";//注册时申请的APPID
    //友盟APPKYE
    public static final String UMENG_APPKEY = "";//友盟appkey
    //友盟参数 微信
    public static final String WeChatAppID = "wx88216ea78729468e";
    public static final String WeChatAppSecret = "a9a211f5ff44f54d6f35ca57b026a7ed";
    //立木征信  相关参数
    public final static boolean isDebug = false;       //是不是debug测试环境
    public final static String testUrl="https://t.limuzhengxin.cn";
    public final static String testApiKey="7348997802722446";//测试环境ApiKey
    public final static String testApiSecret="68fQrMCk6wJmtkt7PRtcqvjSg0NbFCnX";//测试环境ApiSecret
    public final static String produceUrl="https://api.limuzhengxin.com";
    public final static String produceApiKey="5775868574280229";//正式环境ApiKey
    public final static String produceApiSecret="TLNRGHvoGZfXUKVSHCUmWhapBrOP2g6Q";//正式环境ApiSecret
    public final static String callBackUrl="http://app.iiapay.com/app/limu/zx_notify";//立木查询结果回调地址
    //云脉
    public static String YUNMAI_USERNAME = "17d6dcbe-03d8-41cd-b1fb-138f0f189689";//开发者平台API帐号  云脉开发者账号及密码(拍照识别)
    public static String YUNMAI_PASSWORD = "WASiVCyBRVoVXqmsMfqMMTnXLJPrXB";//开发者平台API密码
    public static String YUNMAI_ENGINE_URL = "http://www.yunmaiocr.com/SrvXMLAPI";//访问服务器地址

    public static final Map<String, String> getParamMap(String method) {
//        String token = SPUtils.get(MvpApplication.getContext(), "token", "");
        String token = "fe1d41a18dda43522b93eccd737de4a3";

        Map<String, String> map = new HashMap<>();
        map.put("timestamp", StringUtil.random());
        map.put("token", token);
        map.put("method", method);
        return map;
    }

    public static final String LoginMethod = "login";//
    public static final String JPushMethod = "get_register_push";//




}
